﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Avatar.Common;

public partial class UserControl_Default_SearchSimple : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }
    protected void ImgButton_search_Click(object sender, ImageClickEventArgs e)
    {
        this.Search();
    }
    protected void txt_KeyWord_TextChanged(object sender, EventArgs e)
    {
        this.Search();
    }
    protected void Search()
    {
        string _condition = string.IsNullOrEmpty(txt_KeyWord.Text) ? string.Empty : txt_KeyWord.Text;

        //Response.Redirect("./JobSearch.aspx?" + Server.UrlEncode(_condition));
        Response.Redirect("./JobSearch.aspx?key=" + Server.UrlEncode(_condition));
    }
}
